package demo1;

public class Duck extends Animal{
    public Duck(String name, String sex) {
        super(name, sex);
    }

    @Override
    public void eat() {
        System.out.println(getName()+"爱吃饲料...");
    }
}
